package com.demo.springboot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yizhicheng
 * @ClassName DemoController
 * @Description demoController
 * @Date 2021/10/26 9:12 下午
 **/
@RestController
@RequestMapping("demo")
public class DemoController {

    @PostMapping("/post")
    public String post() {
        return "hello world by post";
    }

    @GetMapping("/get")
    public String get() {
        return "hello world by get";
    }
}
